home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / xmprimitivep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-01  |  1.5 KB  |  49 lines

  1. /* This file just includes the Motif header file PrimitiveP.h, but does
  2.    the necessary magic to do this properly.
  3.  
  4. This file is part of XEmacs.
  5.  
  6. XEmacs is free software; you can redistribute it and/or modify it
  7. under the terms of the GNU General Public License as published by the
  8. Free Software Foundation; either version 2, or (at your option) any
  9. later version.
  10.  
  11. XEmacs is distributed in the hope that it will be useful, but WITHOUT
  12. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14. for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with XEmacs; see the file COPYING.  If not, write to the Free
  18. Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: Not in FSF. */
  21.  
  22. /* Motif attempts to use old '/ * * /' method of pasting tokens together
  23.    unless __STDC__ > 0.  Bad idea, because the SunPro C compiler defines
  24.    __STDC__ to 0 in "lenient ANSI mode" (which is what you need to
  25.    compile Emacs in).  Unfortunately, some compilers don't let you mess
  26.    around with __STDC__, so ... */
  27.  
  28. #if defined(__SUNPRO_C) && (__STDC__ == 0)
  29. # undef __STDC__
  30. # define __STDC__ 1
  31. # define __STDC__CHANGED__
  32. #endif
  33.  
  34. /* PrimitiveP.h doesn't exist in old versions of Motif; the stuff is
  35.    in XmP.h instead */
  36.  
  37. #include <Xm/Xm.h>    /* to get XmVersion */
  38. #if (XmVersion >= 1002)
  39. # include <Xm/PrimitiveP.h>
  40. #else
  41. # include <Xm/XmP.h>
  42. #endif
  43.  
  44. #ifdef __STDC__CHANGED__
  45. # undef __STDC__
  46. # define __STDC__ 0
  47. # undef __STDC__CHANGED__
  48. #endif
  49.